package com.ems.system.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ems.system.entity.SysUser;
import com.ems.system.entity.dto.QueryDto;
import com.ems.system.entity.dto.UserDto;

import java.util.List;

public interface SysUserService extends IService<SysUser> {

    SysUser findByName(String userName);

    void editUser(UserDto userDto);

    IPage<UserDto> queryUserTable(QueryDto queryDto);

    UserDto loadByName(String username);

    void delUser(String id);

    void enabledUser(SysUser sysUser);

    void updatePassword(JSONObject jsonObject);
}
